package com.boc.ewr.cornJob;

import com.boc.ewr.business.service.IAcctDtlClassA2Service;
import com.boc.ewr.business.service.IAcctUncaDtlService;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.DateUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author : Wzz
 * @create : 2023-04- 20- 15:07
 * @desc :账户分类-A2类账户明细-生成
 */
@Slf4j
public class AcctA2GenJob implements Job {

    @Autowired
    private IAcctDtlClassA2Service acctDtlClassA2Service;

    /**
     *  A2类账户：每月初（y-3）在未对账账户明细中抓取重点账单账户形成A2类账户明细
     */
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(" Job Execution key：" + jobExecutionContext.getJobDetail().getKey());
        log.info(String.format(" A2类账户明细生成 AcctA2GenJob 时间:" + DateUtils.getTimestamp()));

        acctDtlClassA2Service.createInfo();
    }
}
